package com.BraveY.Demo03;

public class Dog {
    private String color;
    private String bread;

    public Dog() {
    }

    public Dog(String color, String bread) {
        this.color = color;
        this.bread = bread;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return this.color;
    }

    public void setBread(String bread) {
        this.bread = bread;
    }

    public String getBread() {
        return this.bread;
    }

    public void eat() {
        System.out.println(color + "的" + bread + "正在啃骨头.....");
    }

    public void lookhome() {
        System.out.println(color + "的" + bread + "正在看家.....");
    }
}
